package edu.towson.cosc.cosc455.rlee.compiler;

import edu.towson.cosc.cosc455.interfaces.SyntaxAnalyzer;

public class MySyntaxAnalyzer implements SyntaxAnalyzer {

	@Override
	public void lolcode() {
		// #HAI (head?) (comment?) #KTHXBYE
		
		if(!MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_BEGIN)) {
			System.err.println("SYNTAX ERROR: "
					+ MyCompiler.token + " found when "
					+ LexicalTokens.DOC_BEGIN + " expected");
			System.exit(0);
		}
		
		// add to parse tree
		// get next token
		MyCompiler.lexer.getNextToken();
		
		if(MyCompiler.token.equalsIgnoreCase(LexicalTokens.HEAD_BEGIN)) {
			head();
		} else if(MyCompiler.token.equalsIgnoreCase(LexicalTokens.COMMENT_BEGIN)) {
			comment();
		}
		
		if(!MyCompiler.token.equalsIgnoreCase(LexicalTokens.DOC_END)) {
			System.err.println("SYNTAX ERROR: "
					+ MyCompiler.token + " found when "
					+ LexicalTokens.DOC_END + " expected");
			System.exit(0);
		}
	}

	@Override
	public void comment() {
		// TODO Auto-generated method stub

	}

	@Override
	public void head() {
		// TODO Auto-generated method stub

	}

	@Override
	public void title() {
		// TODO Auto-generated method stub

	}

	@Override
	public void paragraph() {
		// TODO Auto-generated method stub

	}

	@Override
	public void bold() {
		// TODO Auto-generated method stub

	}

	@Override
	public void italics() {
		// TODO Auto-generated method stub

	}

	@Override
	public void list() {
		// TODO Auto-generated method stub

	}

	@Override
	public void item() {
		// TODO Auto-generated method stub

	}

	@Override
	public void audio() {
		// TODO Auto-generated method stub

	}

	@Override
	public void video() {
		// TODO Auto-generated method stub

	}

	@Override
	public void define() {
		// TODO Auto-generated method stub

	}

	@Override
	public void use() {
		// TODO Auto-generated method stub

	}

}
